package thread;

/**
 * Created by Administrator on 2017/10/19 0019.
 */
public class FT
{
    public static int i = 0;
    public static void main(String[] args) throws Exception
    {

        final Object o = new Object();
        Runnable r = new Runnable()
        {
            @Override
            public void run()
            {
                i = i + 1;
            }
        };
        for (int j = 0; j < 100; j++)
        {
            Thread t = new Thread(r);
            t.start();
            t.join();
        }
        System.out.println(i);
    }
}
